Related Vulnerabilities: CVE-2021-33026  

The Flask-Caching extension through 1.10.1 for Flask relies on Pickle for serialization, which may lead to remote code execution or local privilege escalation. If an attacker gains access to cache storage (e.g., filesystem, Memcached, Redis, etc.), they can construct a crafted payload, poison the cache, and execute Python code.

Severity Medium

Remote Yes

Type Arbitrary code execution

Description

The Flask-Caching extension through 1.10.1 for Flask relies on Pickle for serialization, which may lead to remote code execution or local privilege escalation. If an attacker gains access to cache storage (e.g., filesystem, Memcached, Redis, etc.), they can construct a crafted payload, poison the cache, and execute Python code.

AVG-1957 python-flask-caching 1.10.1-1 Medium Vulnerable

https://github.com/sh4nks/flask-caching/pull/209